package com.yf.dxapp.module.app.controller.admin.courseitem.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 课程明细分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CourseItemPageReqVO extends PageParam {

    @Schema(description = "主课程id", example = "6898")
    private Long mainCourseId;

    @Schema(description = "课节名称")
    private String title;

    @Schema(description = "ENUM-是否禁用:NO-否,YES-是")
    private Integer disable;

    @Schema(description = "课节编号")
    private Long courseNo;

    @Schema(description = "课节编号描述")
    private String courseNoStr;

    @Schema(description = "IMG-课节封面")
    private String cover;

    @Schema(description = "课节描述", example = "你猜")
    private String description;

    @Schema(description = "发布人id", example = "19070")
    private Long publisherId;

    @Schema(description = "FILE-课节视频地址", example = "https://www.iocoder.cn")
    private String url;

    @Schema(description = "时长")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Integer[] time;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}